# 目录
import os

try:
    os.rename("py065_file1.txt", "py065_file2.txt")
except:
    print("找不到文件")
    os.rename("py065_file2.txt", "py065_file1.txt")

listdir = os.listdir(".")
print(listdir)

isdir = os.path.isdir("py033_obj.py")
print("isdir", isdir)
